/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.herenit.beijing.poc.empi.converter;

import java.sql.Timestamp;
import java.util.Date;
import org.jdesktop.beansbinding.Converter;

/**
 *
 * @author Obama
 */
public class TimeToDateConverter extends Converter<Timestamp, Date> {

    @Override
    public Date convertForward(Timestamp s) {
        return s;
    }

    @Override
    public Timestamp convertReverse(Date t) {
        return new Timestamp(t.getTime());
    }
}
